<html>
<head>
    <meta charset="UTF-8">

    <style>
        .main-container {
            font-family: SF-UI-Text-Regular;
            /*width: 21cm;*/
            margin: 0 auto;
            padding: 20px;
        }

        .float-left {
            float: left;
        }

        .float-right {
            float: right;
        }

        .padding-left-right {
            padding-left: 20px;
            padding-right: 20px;
        }

        .margin-left-right {
            margin-left: 20px;
            margin-right: 20px;
        }

        .section {
            /*border: 3px dashed #CCC;*/
            /*padding: 20px;*/
            border-Top: 2px dashed #D3D3D3;
            padding-Top: 13px;
            margin-bottom: 16px;
            margin-Top: 20px;
        }

        .section-details p {
            color: #126089;
            /*font-size: 16px;*/
        }

        .grouper {
            overflow: hidden;
        }

        .grid-50 {
            width: 50%;
        }

        @font-face {
            font-family: 'SF-UI-Text-Regular';
            src: url("https://s3-ap-southeast-1.amazonaws.com/content.staging.whitecoat.global/PDF/Templates/fonts/SF-UI-Text-Regular.otf");
            font-style: normal;
        }

        h1 {
            font-size: 22px;
            font-family: 'SF-UI-Text-Regular';
        }

        .h1-main {
            margin-top: 90px;
        }

        p {
            margin: 0 0 10px 0;
            font-family: 'SF-UI-Text-Regular';
            font-size: 12px;
        }

        .p-spec {
            color: #149a9a;
            font-weight: bold;
        }

        table, th, td {
            padding: 5px;
            border-collapse: collapse;
        }

        th, td {
            border: 1px solid #D3D3D3;
        }

        .margin-b-30 {
            margin-bottom: 30px;
        }

        .row:after {
            content: "";
            display: table;
            clear: both;
        }

        .column-4 {
            float: left;
            width: 33.33%;
            padding: 10px;
        }

        .column-8 {
            float: left;
            width: 66.66%;
            padding: 10px;
        }

        * {
            box-sizing: border-box;
            font-size: 12px;
        }
    </style>
</head>
<body>

<div class="main-container">
    <div style="background-color: #fff">
        <div class="grouper main-header grouper padding-left-right" style="padding-top: 20px">

            <div class="margin-b-30 row">
                <div class="column-4">
                    <img style="max-width:90%"
                         src="https://s3-ap-southeast-1.amazonaws.com/content.staging.whitecoat.global/PDF/Templates/Images/WhiteCoat_Tax_Invoice.png">
                </div>
                <div class="column-4">
                    WhiteCoat Holdings Pte Ltd. <br/>
                    Clinic Licence No.: 18M0119/01/182 <br/>
                    201 Henderson Road #05-11/12 <br/>
                    Apex @ Henderson <br/>
                    Singapore 159545 <br/>
                </div>
                <div class="column-4">
                    GST Reg. No: 201610235E <br/>
                    T: +65 6909 6909 <br/>
                    F: +65 6909 6909 <br/>
                    E: contactus@whitecoat.com.sg <br/>
                    <a style="text-decoration: none;" href="https://whitecoat.com.sg/">whitecoat.com.sg</a>
                </div>
            </div>
        </div>

        <div class="main-body">
            <div class="grouper">
                <div class="grouper margin-left-right row" style="border-Top: 1px solid #D3D3D3;padding-top:20px;">
                    <div class="column-4">
                        Name: <br/>
                        ${data.name!} <br/><br/>
                        NRIC/FIN/Passport No: <br/>
                        ${data.idNo!}
                    </div>
                    <div class="column-8">
                        Invoice No.: <br/>
                        ${data.invoiceNo!} <br/><br/>
                        Invoice Date: <br/>
                        ${data.invoiceDateStr!} <br/><br/>
                        <i>This is a computer generated invoice. No signature is required.</i>

                    </div>
                </div>

                <div class="grouper margin-left-right" style="border-Top: 1px solid #D3D3D3;padding-top:20px;">
                    <table>
                        <tr>
                            <th>S/N</th>
                            <th colspan="2">Description</th>
                            <th style="border:1px solid #D3D3D3;">Amount</th>
                        </tr>
                        <tr>
                            <td style="width:30px;text-align:center;">1</td>
                            <td style="width:550px; border-right: none">
                                Medication <br/>
                                <#list data.medicationList as item>
                                    ${item.productName!} <br/>
                                </#list>
                                <i><br/>Subtotal</i>
                            </td>
                            <td style="text-align:right; border-left: none">
                                Quantity <br/>
                                <#list data.medicationList as item>
                                    ${item.quantity!} <br/>
                                </#list>
                                <i style="color:#fff"><br/>Subtotal</i>
                            </td>
                            <td style="width:200px;text-align:right">
                                <br/>
                                <#list data.medicationList as item>
                                    $${item.amount!} <br/>
                                </#list>
                                <br/><i>${data.subtotal!}</i>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align:center;">2</td>
                            <td colspan="2">Administrative charges</td>
                            <td style="text-align:right">$${data.adminCharge!}</td>
                        </tr>
                        <tr>
                            <td colspan="3" style="text-align:right; border-bottom: none; border-left: none">
                                Subtotal(Excluding GST)
                            </td>
                            <td style="text-align:right">$${data.subtotalExcludingGST!}</td>
                        </tr>
                        <tr>
                            <td colspan="3"
                                style="text-align:right; ; border-bottom: none; border-top: none; border-left: none">
                                GST(${data.tax!}%)
                            </td>
                            <td style="text-align:right">$${data.GST!}</td>
                        </tr>
                        <tr>
                            <td colspan="3"
                                style="text-align:right; border-top: none; border-left: none; border-bottom: none">
                                Total(Including GST)
                            </td>
                            <td style="text-align:right">$${data.totalIncludingGST!}</td>
                        </tr>
                    </table>

                </div>

                <div class="grouper margin-left-right float-left" style="padding-bottom :20px;padding-top :20px">
						<span>
							Bank remittance details for payment by Bank Telegraphic <br/>
							Transfer in Singapore Dollars to:<br/>
							Name of Bank: United Overseas Bank Ltd. Holland Branch<br/>
							Account Name: Whitecoat Holdings Pte Ltd.<br/>
							Account No: 341-308-316-6<br/>
							Bank Code: 7375<br/>
							Branch Code: 020<br/>
							Bank Swift Code: UOVBSGSG
						</span>
                </div>

            </div>
        </div>

    </div>

</body>
</html>